<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class DeviceModel extends RelationModel {
	
    protected $_validate = array(

	);
	protected $_auto = array (

	);
    protected $_link=array(
        "feichong_log"=>array(
			'mapping_type'  => self::HAS_MANY,
			"class_name"    =>"feichong_log",
			"mapping_name"  =>"feichong_log",
			"foreign_key"   =>"device_id",
			"condition"     =>"time_ymd=1",
			"mapping_fields"=>array("number,id,add_time as create_time,time_ymd")
           	),


	);
}
?>